<?php
require_once ("../db/connectdatabase.php");

function deleteNewInfoMauB($id) {
	$con = new ConnectDB();
	$tbl = "infonewobjectloan";
	$condition = array('nid' => $id);
	return $con -> delete($tbl, $condition);
}

$result = false;
$action = $_POST['act'];
if($action == 'del') {
	if(isset($_POST['idpe'])) {
		$result = deleteNewInfoMauB($_POST['idpe']);
	}
}
echo json_encode($result);
?>